<!doctype html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Web Helper</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@4.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>

<body>
    <div class="container pt-5">
        <p>把<b>完整的</b> URL 输入到文本框中，我可以帮你访问。点击按钮以加载。</p>
        <p>目前只允许访问以下几个站点：</p>
        <ul>
            <li>example.com</li>
            <li>www.example.com</li>
        </ul>
        <p>并且协议仅支持 HTTP。</p>
        <form action="/request">
            <div class="form-group row">
                <label for="url">
                    URL:
                </label>
                <input type="text" name="url" id="url" class="form-control" placeholder="http://www.example.com">
            </div>
            <div class="form-group row">
                <button type="submit" class="btn btn-primary">Go!</button>
            </div>
        </form>
        <p>对了，flag 放在了 http://web1/flag，但显然你是访问不到的～</p>
        <a href="/source">源代码</a>
    </div>
</body>

</html>